const express = require("express");
const router = express.Router();
const { getBannerServices, updateBannerServices } = require("../services/bannerServices");
// 获取标语
router.get("/", async (req, res, next) => {
    console.log("get Banner")
    res.send(await getBannerServices());
})

// 修改标语
router.post("/", async (req, res, next) => {
    console.log("update")
    res.send(await updateBannerServices(req.body))
})

module.exports = router;